<?php
/**
 * Created by PhpStorm.
 * User: man0sions
 * Date: 16/8/30
 * Time: 下午4:42
 */

namespace src\Factory;

/**
 * 数据格式化接口
 * 需要实现
 * 1:playlist数据格式化
 * 2:video数据格式化
 * Interface FormatSrtategy
 * @package src\Factory
 */

interface FormatSrtategy
{
    /**
     * play数据格式化
     * @param \stdClass $class
     * @return mixed
     */
    function formatPlaylist(\stdClass $class);

    /**
     * video数据格式化
     * @param \stdClass $class
     * @return mixed
     */
    function formatVideo(\stdClass $class);
}